package com.supreme.commonelastic;

import com.supreme.commonboot.annotation.ApplicationName;
import org.springframework.boot.SpringBootConfiguration;

import javax.annotation.PostConstruct;

@SpringBootConfiguration
public class SupremeCommonElasticModule {

    @ApplicationName
    private String applicationName;

    @PostConstruct
    private void initElasticsearchModule() {
        System.out.println("initElasticsearchModule: " + applicationName);
    }
}
